PreviousTracker indexSee it online !

(276/276) 1824 - CtagsInterface doesn't work with latest Lucene

I get this message when attempting to load CtagsInterface:

/home/danson/.jedit/jars/CtagsInterface.jar:
Cannot start: java.lang.NoSuchFieldError: LUCENE_41
Try updating to a newer version of the plugin.

The LUCENE_41 field is no longer in org.apache.util.Version. This field is referenced 3 times in ctagsinterface.index.TagIndex.

Submitted daleanson - 2015-09-18 18:54:49.253000 Assigned grepppo
Priority 5 Labels
Status pending Group
Resolution fixed

Comments

2015-09-19 16:50:45.796000
grepppo

This looks like a side effect of upgrading the version of Lucene to v5 in the Lucene Plugin (saw similar errors when I was doing the upgrade).

I don't know the CTags plugin at all, does it use the Lucene Plugin just as a source for the Lucene libs ? or does it use other functionality of the Lucene Plugin ?

I suppose there are a couple of options for fixing this

1) Leave the code layout as it is and upgrade the CTags plugin to use the same version of Lucene as the Lucene plugin
2) Package CTags with it's own version of the Lucene Libs
3) Pull the Lucene Libs out to a separate module (like Jakarta Commons) allows the plugins to manage their own dependencies

Is there an easy way of telling what other plugins may have a dependency on the Lucene Plugin?

2015-09-19 17:21:44.702000
ezust

ctagsinterface uses lucene for its indexing facility instead of a database.
ctagsInterface needs a new maintainer. I suggest 1, not 2.
lucene plugin is the natural container of the lucene libs.



On Sat, Sep 19, 2015 at 9:50 AM, Tim Blackler <grepppo@users.sf.net> wrote:

> This looks like a side effect of upgrading the version of Lucene to v5 in
> the Lucene Plugin (saw similar errors when I was doing the upgrade).
>
> I don't know the CTags plugin at all, does it use the Lucene Plugin just
> as a source for the Lucene libs ? or does it use other functionality of the
> Lucene Plugin ?
>
> I suppose there are a couple of options for fixing this
>
> 1) Leave the code layout as it is and upgrade the CTags plugin to use the
> same version of Lucene as the Lucene plugin
> 2) Package CTags with it's own version of the Lucene Libs
> 3) Pull the Lucene Libs out to a separate module (like Jakarta Commons)
> allows the plugins to manage their own dependencies
>
> Is there an easy way of telling what other plugins may have a dependency
> on the Lucene Plugin?
>
>
>
> ---
>
> ** [plugin-bugs:#1824] CtagsInterface doesn't work with latest Lucene**
>
> **Status:** open
> **Group:**
> **Created:** Fri Sep 18, 2015 06:54 PM UTC by Dale Anson
> **Last Updated:** Fri Sep 18, 2015 06:54 PM UTC
> **Owner:** nobody
>
>
> I get this message when attempting to load CtagsInterface:
>
> /home/danson/.jedit/jars/CtagsInterface.jar:
> Cannot start: java.lang.NoSuchFieldError: LUCENE_41
> Try updating to a newer version of the plugin.
>
> The LUCENE_41 field is no longer in org.apache.util.Version. This field is
> referenced 3 times in ctagsinterface.index.TagIndex.
>
>
>
>
> ---
>
> Sent from sourceforge.net because you indicated interest in <
> https://sourceforge.net/p/jedit/plugin-bugs/1824/>
>
>
>
> To unsubscribe from further messages, please visit <
> https://sourceforge.net/auth/subscriptions/>
>

alternate (2.6Kio)

2015-09-24 20:33:01.868000
grepppo

I have a working fix for this, but I am unable to push to master, whats the standard way that we work with Git ?

2015-09-24 20:39:09.766000
daleanson

What is the error you're seeing? It seems like I always have to try several things before SF will accept git changes.

2015-09-24 21:25:10.692000
grepppo

remote:
remote: ***************************************************
remote: * Push was prevented because of the following *
remote: * access restrictions: *
remote: ***************************************************
remote: * push to refs/heads/master was denied by master:.gitaccess
remote: ***************************************************
remote:
remote: ***************************************************
remote: * Please set your firstname and lastname as *
remote: * committer name and your lowercase SourceForge *
remote: * email address as committer email. *
remote: * Following you find a list of commits with bad *
remote: * committer names and / or emails. *
remote: * *
remote: * To fix this, you might want to use the *
remote: * following command or a variation thereof: *
remote: * git filter-branch --env-filter 'case "$GIT_COMMIT" in "4140a27cc4af0cd672fc1ec87c0b73d028836da9") GIT_COMMITTER_EMAIL="grepppo@users.sourceforge.net"; export GIT_COMMITTER_EMAIL; GIT_AUTHOR_EMAIL="grepppo@users.sourceforge.net"; export GIT_AUTHOR_EMAIL;; esac' --tag-name-filter cat refs/heads/master
remote: ***************************************************
remote: * 4140a27: 'timb <tim@eparsnip.com>'
remote: ***************************************************
remote:
To ssh://grepppo@git.code.sf.net/p/jedit/CtagsInterface
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://grepppo@git.code.sf.net/p/jedit/CtagsInterface'

2015-09-24 21:26:15.521000
ezust

I just tried to add grepppo to .gitaccess and I got a 403 error trying to push from work. I will try again from home.

2015-09-24 23:25:09.740000
daleanson

Tim, check your ~/.gitconfig file, make sure the name and email are set to your sourceforge account.

2015-09-27 14:10:14.231000
grepppo

OK I have been trying this on an off all weekend, and I am still getting variants of the same error, I have tried changing my user and email address.

I checked out fresh each time using git clone ssh://grepppo@git.code.sf.net/p/jedit/CtagsInterface
My current .gitconfig is

[user]
name = grepppo
firstname = grepppo
lastname = grepppo
email = grepppo@users.sourceforge.net

though I have tried grepppo@users.sf.net as well within a similar result, I can also see that current .gitaccess has the following users:

ezust
daleanson
vanza
shlomy
kpouer
grepppo


remote:
remote: ***************************************************
remote: * Please set your firstname and lastname as *
remote: * committer name and your lowercase SourceForge *
remote: * email address as committer email. *
remote: * Following you find a list of commits with bad *
remote: * committer names and / or emails. *
remote: * *
remote: * To fix this, you might want to use the *
remote: * following command or a variation thereof: *
remote: * git filter-branch --env-filter 'case "$GIT_COMMIT" in "e0217d3325890db6c5cd1395e8b64bbe04b65cf0") GIT_COMMITTER_EMAIL="grepppo@users.sourceforge.net"; export GIT_COMMITTER_EMAIL; GIT_AUTHOR_EMAIL="grepppo@users.sourceforge.net"; export GIT_AUTHOR_EMAIL;; esac' --tag-name-filter cat refs/heads/master
remote: ***************************************************
remote: * e0217d3: 'grepppo <grepppo@users.sourceforge.net>'
remote: ***************************************************
remote:
To ssh://grepppo@git.code.sf.net/p/jedit/CtagsInterface
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://grepppo@git.code.sf.net/p/jedit/CtagsInterface'

2015-09-27 16:43:11.038000
ezust

Here is what I have in my ~/.gitconfig:

[user]
name = Alan Ezust
email = ezust@users.sourceforge.net

After you set it there, you don't have to do it individually for each plugin again.

2015-09-27 18:35:37.235000
grepppo

- **status**: open --> pending-fixed
- **assigned_to**: Tim Blackler
- **Group**: -->

2015-09-27 18:35:37.647000
grepppo

OK thanks Alan, that worked. This should fix the issue with the mismatched Lucene versions.